# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-managesieve
_pkgname=managesieve
pkgver=0.6
pkgrel=3
pkgdesc="ManageSieve client library, including user application sieveshell"
url="https://managesieve.readthedocs.io/"
arch="noarch"
license="PSF-2.0 AND GPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="https://gitlab.com/htgoebel/managesieve/-/archive/v$pkgver/managesieve-v$pkgver.tar.gz
	dont-depend-on-pytest-runner.patch
	"
builddir="$srcdir/$_pkgname-v$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
00eb96c29b25888bab94cf72c7150e5c3f5c651ab7963099ac9f25c73b3eef31ebfde1723ab81811c33e922e91c43f452f2fd0c4206ba9b964db95ebb3a2325e  managesieve-v0.6.tar.gz
aa91457aa9fc224f2a0baf3acc8b3350984beaae14056b0183be640fdf4ffc2febafbb987a3b0f547176e13238399ddd434ab285a51e107c6723c5f9de982ed4  dont-depend-on-pytest-runner.patch
"
